package com.smile.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalTime;

@Data
@ToString
@TableName("feisuan_on_site_inspection")
public class FeisuanOnSiteInspection implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("job_id")
    private Long jobId;

    @TableField(value = "plan_name")
    private String planName;

    @TableField(value = "execute_type")
    private Integer executeType;

    @TableField(value = "organization_id")
    private Long organizationId;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "airport_id")
    private Long airportId;

    /**
     * 状态(1待执行2执行中3已完成4部分执行5执行失败6已取消7已终止)
     */
    @TableField(value = "state")
    private Integer state;

    @TableField(value = "task_rule")
    private String taskRule;

    /**
     * 临时字段
     */
    @TableField(value = "type")
    private Integer type;

    @TableField(value = "code")
    private String code;

    @TableField(value = "time")
    private LocalTime time;

    @TableField(value = "day")
    private Integer day;

    @TableField(value = "months")
    private Integer months;

    @TableField(value = "week")
    private Integer week;

    @TableField(value = "days")
    private Integer days;

    @TableField(value = "weeks")
    private Integer weeks;

    @TableField(value = "job_type")
    private Integer jobType;

    @TableField(value = "airline_id")
    private Long airlineId;

    @TableField(value = "start_time")
    private LocalDateTime startTime;

    @TableField(value = "end_time")
    private LocalDateTime endTime;

    @TableField(value = "single_date")
    private LocalDateTime singleDate;

    @TableField(value = "airline_code")
    private String airlineCode;
    /**
     * 执行次数
     */
    @TableField(value = "execute_count")
    private Integer executeCount;

    /**
     * 执行次数
     */
    @TableField(value = "success_count")
    private Integer successCount;

    /**
     * 品牌id
     */
    @TableField("brand_id")
    private Long brandId;


    /**
     * 品牌id
     */
    @TableField("series_id")
    private Long seriesId;

    /**
     * 品牌id
     */
    @TableField("model_id")
    private Long modelId;

    /**
     * 删除状态
     */
    @TableField("delete_status")
    private Boolean deleteStatus;
}
